package com.byx.chatclient.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

import lombok.AccessLevel;
import lombok.Builder;
import lombok.ToString;

/**
 * @ClassName UserPo
 * @Description 存用户的基本信息到本地数据库
 * @Author Superb
 * @Date 2021/5/6
 * @Version 1.0
 */
@ToString
@Builder
@Entity
public class UserPo {
    @Id
    private Long id;
    private String loginId;
    private String nickName;
    private String password;
    private String localAvatarUrl;
    private String remoteAvatarUrl;
    private Long lastModifyTime;
    @Generated(hash = 395226720)
    public UserPo(Long id, String loginId, String nickName, String password,
            String localAvatarUrl, String remoteAvatarUrl, Long lastModifyTime) {
        this.id = id;
        this.loginId = loginId;
        this.nickName = nickName;
        this.password = password;
        this.localAvatarUrl = localAvatarUrl;
        this.remoteAvatarUrl = remoteAvatarUrl;
        this.lastModifyTime = lastModifyTime;
    }
    @Generated(hash = 1216556670)
    public UserPo() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getLoginId() {
        return this.loginId;
    }
    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }
    public String getNickName() {
        return this.nickName;
    }
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getLocalAvatarUrl() {
        return this.localAvatarUrl;
    }
    public void setLocalAvatarUrl(String localAvatarUrl) {
        this.localAvatarUrl = localAvatarUrl;
    }
    public String getRemoteAvatarUrl() {
        return this.remoteAvatarUrl;
    }
    public void setRemoteAvatarUrl(String remoteAvatarUrl) {
        this.remoteAvatarUrl = remoteAvatarUrl;
    }
    public Long getLastModifyTime() {
        return this.lastModifyTime;
    }
    public void setLastModifyTime(Long lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }
    
}
